package com.briup.ch06;

public class Worker extends Employee{
    private int workday;
    public Worker(String name,String gender,String birth,int workday)
    {
        super(name,gender,birth,"一般工人");
        this.workday=workday;
    }
    @Override
    public void computeSalary()
    {
        System.out.println(this.getType()+" "+getName()+" "+"本月工资为:"+200.0*this.workday+"元");
    }
}
